<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{fragments/layout}">
<head th:include="/admin/common/header :: commonHead"></head>
<body>
<div class="main-layout" id='main-layout'>
    <!--侧边栏-->
    <div class="main-layout-side">
        <div class="m-logo">
        </div>
        <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
            <th:block th:each="nav1 : ${navList}">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;" th:data-url="${nav1.url}">
                        <i class="layui-icon" th:attrappend="class=${' '+ nav1.picture}" ></i>
                        </i>
                        <th:block th:text="${nav1.name}">
                        </th:block>
                    </a>
                    <th:block th:if="${not #lists.isEmpty(nav1.getMenuList())}">
                        <dl class="layui-nav-child">
                            <dd th:each="nav2:${nav1.getMenuList()}">
                                <a href="javascript:;" th:data-url="${nav2.url}">
                                        <span class="l-line"></span>
                                    <th:block th:text="${nav2.name}">
                                    </th:block>
                                </a>
                            </dd>
                        </dl>
                    </th:block>
                </li>
            </th:block>
        </ul>
    </div>
    <!--右侧内容-->
    <div class="main-layout-container">
        <!--头部-->
        <div class="main-layout-header">
            <div class="menu-btn" id="hideBtn">
                <a href="javascript:;">
                    <span class="iconfont">&#xe60e;</span>
                </a>
            </div>
            <ul class="layui-nav" lay-filter="rightNav">
                <th:block th:each="menu : ${menuList}">
                    <li class="layui-nav-item">
                        <a href="javascript:;" th:data-url="${menu.url}">
                            <i class="layui-icon iconBtn" th:attrappend="class=${' '+ menu.picture}" ></i>
                        </a>
                    </li>
                </th:block>
            </ul>
        </div>
        <!--主体内容-->
        <div class="main-layout-body">
            <iframe th:src="@{/admin/welcome}" width="100%" height="100%" name="iframe" scrolling="auto"
                    class="iframe" framborder="0"></iframe>
        </div>
    </div>
    <!--遮罩-->
    <div class="main-mask">

    </div>
</div>
</body>
<html th:include="/admin/common/footer :: commonFoot"></html>
<script>
    layui.config({
        base:path+'/static/admin/js/' //你的模块目录
    }).use('main'); //加载入口
</script>
</html>
